{% extends 'frontend/index_base.html' %}
{% block title %}注册{% endblock %}
{% block content %}
<div class="container" style="max-width: 400px; margin-top: 50px;">
    <h2 class="text-center mb-4">注册</h2>
    <div class="card shadow-sm">
        <div class="card-body">
            <form action="/register" method="post">
                <div class="mb-3">
                    <label for="username" class="form-label">用户名</label>
                    <input type="text" class="form-control" id="username" name="username" required>
                </div>
                <div class="mb-3">
                    <label for="password" class="form-label">密码</label>
                    <input type="password" class="form-control" id="password" name="password" required>
                </div>
                <div class="mb-3">
                    <label for="confirm_password" class="form-label">确认密码</label>
                    <input type="password" class="form-control" id="confirm_password" name="confirm_password" required>
                </div>
                <div class="d-grid">
                    <button type="submit" class="btn btn-success">注册</button>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
